<template >
  <div>
      <h1>{{tabData}}</h1>
  </div>
</template>
<script setup>
   import {ref} from 'vue'
   let myname=ref("")
   let arr=[{
      name:"张三",
      age:18
   },{
      name:"李四",
      age:20
   }
  ]

  let tabData=await new Promise((reslove,reject)=>{
      setTimeout(()=>{
        reslove(arr)
      },3000)
  })
 
</script>